package com.firebroo.PullObserver;

public class ConcreteObserver2 implements Observer {
	private String state;

	@Override
	public void update(Subject subject) {
		state = ((ConcreteSubject)subject).getState();
		System.out.println("观察者2状态为:" + state);
	}
}
